const sequelize = require('../config/sequelize')
const Sequelize = require('sequelize')

const Collect = sequelize.define('collects', {
    vaild: {
        type: Sequelize.BIGINT,
        field: 'valid'
    },
    collectId: {
        type: Sequelize.BIGINT,
        field: 'id'
    },
    userId: {
        type: Sequelize.BIGINT,
        field: 'user_id'
    },
    articleId: {
        type: Sequelize.BIGINT,
        field: 'article'
    }
})

module.exports = Collect